<%--
  Created by IntelliJ IDEA.
  User: yetm
  Date: 2022/1/6
  Time: 15:46
  To change this template use File | Settings | File Templates.
--%>

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="entity.User" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="dao.UserDao" %>
<%@ page import="dao.UserDaoImplement" %>
<%@ page import="java.lang.ref.ReferenceQueue" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>首页</title>
</head>
<body>
  <h2>hello !</h2>
  <a href="allUser">查看所有用户</a>
  <table border="1" style="margin-top: 20px">
      <tr>
          <th>ID</th>
          <th>用户名</th>
          <th>密码</th>
      </tr>
      <c:forEach var="user" items="${requestScope.users}">
      <tr>
          <td><input type="text" value="${user.id}" name="id"></td>
          <td><input type="text" value="${user.name}" name="name" ></td>
          <td><input type="text" value="${user.password}" name="password"></td>
      </tr>
      </c:forEach>
  </table>
</body>
</html>
